home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Extensions… / Extension Shell ƒ / Extension.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-07  |  2.0 KB  |  69 lines  |  [TEXT/MPS ]

  1. /*________________________________________________________
  2.  
  3.     File: Extension.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.     12/01/92 - dmh - Created.
  11.      4/26/93 - dmh - Updated to use recommended approach
  12.                       to global data initialization.
  13.      9/05/93 - dmh - Updated to b2.
  14.                     - Fixed minor problem with highlighting
  15.                      of editText panel items.
  16.                    - Switched to Exception.h assertion stuff
  17.                      for error checking.
  18.  
  19.     (Note: labels are in the Mark menu.)
  20.     
  21. __________________________________________________________*/
  22.  
  23. #include <Types.h>
  24. #include <Errors.h>
  25. #include <Resources.h>
  26. #include <ToolUtils.h>
  27. #include <Exceptions.h>
  28. #include <Collections.h>
  29. #include <Messages.h>
  30. #include <PrintingManager.h>
  31. #include <PrintingMessages.h>
  32.  
  33.  
  34. #define kCreator                    'GExt'            /* Our creator type.            */
  35. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  36.  
  37. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  38. #define kExtensionTurnedOff            0                /* We're turned on.                */
  39. #define kExtensionTurnedOn            1                /* We're turned off.            */
  40.  
  41. #define kDefaultSetting            kExtensionTurnedOn    /* We're on by default.            */
  42.  
  43.  
  44. typedef struct ExtensionCollection                    /* This is our collection type.    */
  45. {
  46.     char    extTurnedOn;                            /* On/off panel item value.        */
  47.     char    fillByte;
  48. } ExtensionCollection;
  49.  
  50.  
  51. // Prototypes:
  52.  
  53. extern    long A5Size (void);                            /* We need these to set up        */
  54. extern    void A5Init (void *);                        /* our A5 world.                */
  55.  
  56. OSErr    InitGlobalData(void);
  57. OSErr    NewInitialize(void);
  58. OSErr    NewShutDown(void);
  59. OSErr    NewSpoolPage(gxSpoolFile spFile, gxFormat aFormat, gxShape pgShape);
  60. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  61. OSErr    NewHandlePanelEvent(gxPanelInfoRecord *panelInfo);
  62. OSErr    SetUpPrintPanel(void);
  63. OSErr    StoreJobCollectionItem(void *collectItem, long collectSize, OSType collectType,
  64.                                short collectID, Boolean newItem);
  65. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  66.                              OSType collectType, short collectID);
  67.  
  68.  
  69.